const { http } = uni.$u

// 登录
export const apiLogin = () => http.get('/api/logOn/ghgl/123456/true')
// 房屋查询
export const apiLoadGridData = (data) => http.post('/app-data/App/LoadGridData', data)
// 身份认证
export const apiAuth = ({ name, idCard, id }) => http.get(`/bmsapi/auth/${name}/${idCard}/${id}`)
// 详情相关接口
export const apiRecord = ({ MorphologyId, id }) => {
	return {
		// 详情
		get: () => http.get(`/bmsapi/getRecord/${MorphologyId}/${id}`),
		// 更新
		update: (data) => http.put(`/api/updateRecord/${MorphologyId}/${id}`, data)
	}
}
// 删除图片
export const apiDeleteRecord = ({ MorphologyId, id }) => http.delete(`/api/deleteRecord/${MorphologyId}/${id}`)
